/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cn.nju.zyy.basic.exception;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 *
 * @author yingyzhang
 */
public class NativeExceptionHandling {
    public static void main(String[] args) {
	try {
	    ExecutorService exec = Executors.newCachedThreadPool();
	    exec.execute(new ExceptionThread());
	} catch (RuntimeException e) {
	    // This statement will NOT execute!
	    System.out.println("Exception has been handled!");
	}
    }
}
